package models_live

type LiveStreamHistory struct {
	Title             string `json:"title" gorm:"column:title"`
	Thumb             string `json:"thumb" gorm:"column:thumb"` //varchar(255) DEFAULT NULL COMMENT '直播封面',
	UserId            int64  `json:"userId" gorm:"column:user_id"`
	LiveStreamerId    int64  `json:"liveStreamer" gorm:"column:anchorid"`
	LiveStreamId      int64  `json:"liveStreamId" gorm:"column:liveid"`
	LastVisitTime     int64  `json:"lastVisitTime" gorm:"column:last_visit_time"`
	CategoryID        int    `json:"category_id" gorm:"column:category_id"`
	CategoryName      string `json:"category_name" gorm:"column:category_name"`
	ChildCategoryID   int    `json:"child_category_id" gorm:"column:child_category_id"`
	ChildCategoryName string `json:"child_category_name" gorm:"column:child_category_name"`
	AnchorName        string `json:"anchor_name" gorm:"column:anchor_name"`
	Platform          uint32 `json:"platform" gorm:"column:platform"` // 1:web, 2:ios, 3:android
}

func (LiveStreamHistory) TableName() string {
	return "live_stream_visit_history"
}
